package cn.doublefloat.crm.project.system.controller;

import cn.doublefloat.crm.framework.web.domain.JsonResult;
import cn.doublefloat.crm.project.system.domain.vo.UserLog;
import cn.doublefloat.crm.project.system.service.impl.UserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author RedReins
 * @version 1.0
 * @description: 日志接口
 * @date 2021/3/30 19:01
 */

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private UserDetailService userDetailService;
    @RequestMapping("/getLog")
    public JsonResult getLog(){
        List<UserLog> allLogs = userDetailService.findAllLogs();
        return JsonResult.success(allLogs);
    }
}
